export class OfflineClassRule {
  constructor(required, offlineClassEl) {
    this.asyncValidator = (rule, infoCollectId) => {
      if (!required) return Promise.resolve();
      return offlineClassEl
        ? offlineClassEl.validate()
        : Promise.reject("节点不存在");
    };
  }
}
